package com.atguigu.mr1;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import java.io.IOException;

//读取的操作
public class FruitMapper extends Mapper<LongWritable,Text,LongWritable, Text> {
    @Override
    protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {
        //只是将数据直接写出去，不作任何操作
        context.write(key,value);
    }
}
